package sample.plugin.toolpage;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.rapid.api.component.page.side.BaseToolPage;
import com.rapid.api.component.page.side.PageAnchor;
import com.rapid.api.component.page.side.ToolPageMenuRegistry;

public class TestToolPage extends BaseToolPage {

    @Override
    public String getName() {
        return "测试";
    }

    @Override
    public String getPageId() {
        return "test";
    }

    @Override
    public View createView(Context context, ViewGroup viewGroup) {
        return new TextView(getContext());
    }

    @Override
    public PageAnchor getAnchor() {
        return PageAnchor.LEFT;
    }

    @Override
    public ToolPageMenuRegistry getMenus() {
        return null;
    }
}
